import Vue from 'vue'
import App from './App.vue'
import router from './router'
/* element局部引用 */
import './plugins/element.js'
/* 全局css */
import './assets/css/quanju.less'
/* 阿里图标 */
import './assets/font/iconfont.css'
/* axios */
import axios from 'axios'
/* 设置axios根路径 */
axios.defaults.baseURL = 'http://127.0.0.1:8888/api/private/v1/'
/* axios请求拦截处理后返回 */
axios.interceptors.request.use(config => {
  /* console.log(config) */
  config.headers.Authorization = window.sessionStorage.getItem('token')
  return config
})
/* 挂载axios */
Vue.prototype.$http = axios

Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
